package com.zrrd.blog.util.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ResultEnum {
    SUCCESS(20000,"成功"),
    ERROR(999,"错误"),
    UNAUTHENTICATED(401,"请先通过身份认证"),
    AUTH_FAIL(1400,"认证失败"),
    USER_NOT_EXSIT(402,"用户不存在"),
    TOKEN_PAST(1401,"身份过期，请重新登录!"),
    TOKEN_ERROR(1402,"令牌错误"),
    HEADEA_ERROR(1403,"请求头错误"),
    AUTH_USERNAME_NONE(1404,"用户名不能为空"),
    AUTH_PASSWORD_NONE(1405,"密码不能为空"),
    MENU_NO(306,"没此授权，请联系管理员");
    private Integer code;
    private String desc;
}
